Skip to content

chore(releases): drop the grouprelease new_release_id column - #130639

Merged
ldelvoye merged 2 commits into
masterfrom
ldelvoye/chore/drop-grouprelease-new-release-id
Nov 10, 2026
Merged

ldelvoye merged 2 commits into
masterfrom
ldelvoye/chore/drop-grouprelease-new-release-id

Conversation

@ldelvoye

Copy link
Copy Markdown
Member

resolves INFRENG-784

Drops the old int4 new_release_id column from sentry_grouprelease, the last step of widening release_id to int8. 1253 (#130158) moved it to pending and has finished deploying everywhere, so its swap guard has passed in every region.

It also deletes the 1252 and 1253 migration tests. Both migrate back to 1251, and reversing this drop re-adds the column with a new attnum, so 1252's unswap guard sees the table as already unswapped and does nothing. #127461 removed the release swap test for the same reason.

Removes the old int4 column that 1253 moved to pending. Also deletes the
1252 and 1253 migration tests: reversing the drop re-adds the column
with a new attnum, so 1252's unswap guard no-ops and both tests fail.
@linear-code

linear-code Bot commented Nov 10, 2026

Copy link
Copy Markdown

INFRENG-784

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/1254_grouprelease_drop_new_release_id.py

for 1254_grouprelease_drop_new_release_id in sentry

--
-- Remove field new_release_id from grouprelease
--
ALTER TABLE "sentry_grouprelease" DROP COLUMN "new_release_id" CASCADE;

@ldelvoye
ldelvoye marked this pull request as ready for review November 10, 2026 18:15
@ldelvoye
ldelvoye requested a review from a team as a code owner November 10, 2026 18:15
@ldelvoye
ldelvoye merged commit bd00806 into master Nov 10, 2026
100 checks passed
@ldelvoye
ldelvoye deleted the ldelvoye/chore/drop-grouprelease-new-release-id branch November 10, 2026 21:25

This branch was successfully deployed

1 active deployment
Preview — 944057c2 Deployed Nov 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants